package com.hziee.graduate.ticket.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hziee.graduate.ticket.dto.R;
import com.hziee.graduate.ticket.entity.Room;
import com.hziee.graduate.ticket.vo.RoomVO;

import java.util.List;
import java.util.Map;

public interface RoomService extends IService<Room> {

    R<Object> addARoom(Map<String, Object> map);

    R<List<Room>> getAllRoomByCinema(Long cinemaId);

    R<RoomVO> getRoomBySchedule(Long movieId, String date, Long cinemaId, Long scheduleId);

    R<Object> updateARoom(Map<String, Object> map);

    R<Object> deleteARoom(Long roomId);

    R<List<Room>> getAvailableRoomsByCinema(Long cinemaId);

    R<Object> updateRoomOpenStatusById(Long roomId);
}

